package com.hy.admin.dao;

import com.hy.admin.entity.MemberIncomeEntity;
import org.springframework.stereotype.Repository;

@Repository
public interface MemberIncomeDao {
    int deleteByPrimaryKey(Long id);

    int insert(MemberIncomeEntity record);

    int insertSelective(MemberIncomeEntity record);

    MemberIncomeEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MemberIncomeEntity record);

    int updateByPrimaryKey(MemberIncomeEntity record);

    MemberIncomeEntity selectByMemberId(Long memberId);

    /**
     * 教师账户收入清零-----提现后使用
     * @param memberId
     * @return
     */
    int clearAmount(Long memberId);
}